package com.boco.ibssystem.common.result.support;

import com.boco.ibssystem.common.result.AbstractResult;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class SuccessResult extends AbstractResult {

    private SuccessResult(){

    }

    public static SuccessResult success(Object data){
        SuccessResult result=new SuccessResult();
        result.setData(data);
        result.setCode(200);
        result.setMessage("Success");
        return result;
    }

    public Object data;

}
